Optimal. Leaf size=107 \[ \frac {a}{2 \left (a+b x^2\right ) (b c-a d)^2}+\frac {c}{2 \left (c+d x^2\right ) (b c-a d)^2}+\frac {(a d+b c) \log \left (a+b x^2\right )}{2 (b c-a d)^3}-\frac {(a d+b c) \log \left (c+d x^2\right )}{2 (b c-a d)^3} \]
________________________________________________________________________________________
Rubi [A] time = 0.11, antiderivative size = 107, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {446, 77} \begin {gather*} \frac {a}{2 \left (a+b x^2\right ) (b c-a d)^2}+\frac {c}{2 \left (c+d x^2\right ) (b c-a d)^2}+\frac {(a d+b c) \log \left (a+b x^2\right )}{2 (b c-a d)^3}-\frac {(a d+b c) \log \left (c+d x^2\right )}{2 (b c-a d)^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 77
Rule 446
Rubi steps
\begin {align*} \int \frac {x^3}{\left (a+b x^2\right )^2 \left (c+d x^2\right )^2} \, dx &=\frac {1}{2} \operatorname {Subst}\left (\int \frac {x}{(a+b x)^2 (c+d x)^2} \, dx,x,x^2\right )\\ &=\frac {1}{2} \operatorname {Subst}\left (\int \left (-\frac {a b}{(b c-a d)^2 (a+b x)^2}+\frac {b (b c+a d)}{(b c-a d)^3 (a+b x)}-\frac {c d}{(b c-a d)^2 (c+d x)^2}-\frac {d (b c+a d)}{(b c-a d)^3 (c+d x)}\right ) \, dx,x,x^2\right )\\ &=\frac {a}{2 (b c-a d)^2 \left (a+b x^2\right )}+\frac {c}{2 (b c-a d)^2 \left (c+d x^2\right )}+\frac {(b c+a d) \log \left (a+b x^2\right )}{2 (b c-a d)^3}-\frac {(b c+a d) \log \left (c+d x^2\right )}{2 (b c-a d)^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.10, size = 86, normalized size = 0.80 \begin {gather*} \frac {\frac {a (b c-a d)}{a+b x^2}+\frac {c (b c-a d)}{c+d x^2}+(a d+b c) \log \left (a+b x^2\right )-(a d+b c) \log \left (c+d x^2\right )}{2 (b c-a d)^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^3}{\left (a+b x^2\right )^2 \left (c+d x^2\right )^2} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 1.40, size = 296, normalized size = 2.77 \begin {gather*} \frac {2 \, a b c^{2} - 2 \, a^{2} c d + {\left (b^{2} c^{2} - a^{2} d^{2}\right )} x^{2} + {\left ({\left (b^{2} c d + a b d^{2}\right )} x^{4} + a b c^{2} + a^{2} c d + {\left (b^{2} c^{2} + 2 \, a b c d + a^{2} d^{2}\right )} x^{2}\right )} \log \left (b x^{2} + a\right ) - {\left ({\left (b^{2} c d + a b d^{2}\right )} x^{4} + a b c^{2} + a^{2} c d + {\left (b^{2} c^{2} + 2 \, a b c d + a^{2} d^{2}\right )} x^{2}\right )} \log \left (d x^{2} + c\right )}{2 \, {\left (a b^{3} c^{4} - 3 \, a^{2} b^{2} c^{3} d + 3 \, a^{3} b c^{2} d^{2} - a^{4} c d^{3} + {\left (b^{4} c^{3} d - 3 \, a b^{3} c^{2} d^{2} + 3 \, a^{2} b^{2} c d^{3} - a^{3} b d^{4}\right )} x^{4} + {\left (b^{4} c^{4} - 2 \, a b^{3} c^{3} d + 2 \, a^{3} b c d^{3} - a^{4} d^{4}\right )} x^{2}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.39, size = 178, normalized size = 1.66 \begin {gather*} \frac {\frac {a b^{3}}{{\left (b^{4} c^{2} - 2 \, a b^{3} c d + a^{2} b^{2} d^{2}\right )} {\left (b x^{2} + a\right )}} - \frac {{\left (b^{3} c + a b^{2} d\right )} \log \left ({\left | \frac {b c}{b x^{2} + a} - \frac {a d}{b x^{2} + a} + d \right |}\right )}{b^{4} c^{3} - 3 \, a b^{3} c^{2} d + 3 \, a^{2} b^{2} c d^{2} - a^{3} b d^{3}} - \frac {b^{2} c d}{{\left (b c - a d\right )}^{3} {\left (\frac {b c}{b x^{2} + a} - \frac {a d}{b x^{2} + a} + d\right )}}}{2 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.02, size = 188, normalized size = 1.76 \begin {gather*} \frac {a^{2} d}{2 \left (a d -b c \right )^{3} \left (b \,x^{2}+a \right )}-\frac {a b c}{2 \left (a d -b c \right )^{3} \left (b \,x^{2}+a \right )}+\frac {a c d}{2 \left (a d -b c \right )^{3} \left (d \,x^{2}+c \right )}-\frac {a d \ln \left (b \,x^{2}+a \right )}{2 \left (a d -b c \right )^{3}}+\frac {a d \ln \left (d \,x^{2}+c \right )}{2 \left (a d -b c \right )^{3}}-\frac {b \,c^{2}}{2 \left (a d -b c \right )^{3} \left (d \,x^{2}+c \right )}-\frac {b c \ln \left (b \,x^{2}+a \right )}{2 \left (a d -b c \right )^{3}}+\frac {b c \ln \left (d \,x^{2}+c \right )}{2 \left (a d -b c \right )^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 1.27, size = 228, normalized size = 2.13 \begin {gather*} \frac {{\left (b c + a d\right )} \log \left (b x^{2} + a\right )}{2 \, {\left (b^{3} c^{3} - 3 \, a b^{2} c^{2} d + 3 \, a^{2} b c d^{2} - a^{3} d^{3}\right )}} - \frac {{\left (b c + a d\right )} \log \left (d x^{2} + c\right )}{2 \, {\left (b^{3} c^{3} - 3 \, a b^{2} c^{2} d + 3 \, a^{2} b c d^{2} - a^{3} d^{3}\right )}} + \frac {{\left (b c + a d\right )} x^{2} + 2 \, a c}{2 \, {\left (a b^{2} c^{3} - 2 \, a^{2} b c^{2} d + a^{3} c d^{2} + {\left (b^{3} c^{2} d - 2 \, a b^{2} c d^{2} + a^{2} b d^{3}\right )} x^{4} + {\left (b^{3} c^{3} - a b^{2} c^{2} d - a^{2} b c d^{2} + a^{3} d^{3}\right )} x^{2}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.53, size = 522, normalized size = 4.88 \begin {gather*} \frac {b^2\,c^2\,x^2-a^2\,d^2\,x^2+2\,a\,b\,c^2-2\,a^2\,c\,d+a^2\,d^2\,x^2\,\mathrm {atan}\left (\frac {a\,d\,x^2\,1{}\mathrm {i}-b\,c\,x^2\,1{}\mathrm {i}}{2\,a\,c+a\,d\,x^2+b\,c\,x^2}\right )\,2{}\mathrm {i}+b^2\,c^2\,x^2\,\mathrm {atan}\left (\frac {a\,d\,x^2\,1{}\mathrm {i}-b\,c\,x^2\,1{}\mathrm {i}}{2\,a\,c+a\,d\,x^2+b\,c\,x^2}\right )\,2{}\mathrm {i}+a\,b\,c^2\,\mathrm {atan}\left (\frac {a\,d\,x^2\,1{}\mathrm {i}-b\,c\,x^2\,1{}\mathrm {i}}{2\,a\,c+a\,d\,x^2+b\,c\,x^2}\right )\,2{}\mathrm {i}+a^2\,c\,d\,\mathrm {atan}\left (\frac {a\,d\,x^2\,1{}\mathrm {i}-b\,c\,x^2\,1{}\mathrm {i}}{2\,a\,c+a\,d\,x^2+b\,c\,x^2}\right )\,2{}\mathrm {i}+a\,b\,d^2\,x^4\,\mathrm {atan}\left (\frac {a\,d\,x^2\,1{}\mathrm {i}-b\,c\,x^2\,1{}\mathrm {i}}{2\,a\,c+a\,d\,x^2+b\,c\,x^2}\right )\,2{}\mathrm {i}+b^2\,c\,d\,x^4\,\mathrm {atan}\left (\frac {a\,d\,x^2\,1{}\mathrm {i}-b\,c\,x^2\,1{}\mathrm {i}}{2\,a\,c+a\,d\,x^2+b\,c\,x^2}\right )\,2{}\mathrm {i}+a\,b\,c\,d\,x^2\,\mathrm {atan}\left (\frac {a\,d\,x^2\,1{}\mathrm {i}-b\,c\,x^2\,1{}\mathrm {i}}{2\,a\,c+a\,d\,x^2+b\,c\,x^2}\right )\,4{}\mathrm {i}}{-2\,a^4\,c\,d^3-2\,a^4\,d^4\,x^2+6\,a^3\,b\,c^2\,d^2+4\,a^3\,b\,c\,d^3\,x^2-2\,a^3\,b\,d^4\,x^4-6\,a^2\,b^2\,c^3\,d+6\,a^2\,b^2\,c\,d^3\,x^4+2\,a\,b^3\,c^4-4\,a\,b^3\,c^3\,d\,x^2-6\,a\,b^3\,c^2\,d^2\,x^4+2\,b^4\,c^4\,x^2+2\,b^4\,c^3\,d\,x^4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 4.03, size = 507, normalized size = 4.74 \begin {gather*} \frac {2 a c + x^{2} \left (a d + b c\right )}{2 a^{3} c d^{2} - 4 a^{2} b c^{2} d + 2 a b^{2} c^{3} + x^{4} \left (2 a^{2} b d^{3} - 4 a b^{2} c d^{2} + 2 b^{3} c^{2} d\right ) + x^{2} \left (2 a^{3} d^{3} - 2 a^{2} b c d^{2} - 2 a b^{2} c^{2} d + 2 b^{3} c^{3}\right )} + \frac {\left (a d + b c\right ) \log {\left (x^{2} + \frac {- \frac {a^{4} d^{4} \left (a d + b c\right )}{\left (a d - b c\right )^{3}} + \frac {4 a^{3} b c d^{3} \left (a d + b c\right )}{\left (a d - b c\right )^{3}} - \frac {6 a^{2} b^{2} c^{2} d^{2} \left (a d + b c\right )}{\left (a d - b c\right )^{3}} + a^{2} d^{2} + \frac {4 a b^{3} c^{3} d \left (a d + b c\right )}{\left (a d - b c\right )^{3}} + 2 a b c d - \frac {b^{4} c^{4} \left (a d + b c\right )}{\left (a d - b c\right )^{3}} + b^{2} c^{2}}{2 a b d^{2} + 2 b^{2} c d} \right )}}{2 \left (a d - b c\right )^{3}} - \frac {\left (a d + b c\right ) \log {\left (x^{2} + \frac {\frac {a^{4} d^{4} \left (a d + b c\right )}{\left (a d - b c\right )^{3}} - \frac {4 a^{3} b c d^{3} \left (a d + b c\right )}{\left (a d - b c\right )^{3}} + \frac {6 a^{2} b^{2} c^{2} d^{2} \left (a d + b c\right )}{\left (a d - b c\right )^{3}} + a^{2} d^{2} - \frac {4 a b^{3} c^{3} d \left (a d + b c\right )}{\left (a d - b c\right )^{3}} + 2 a b c d + \frac {b^{4} c^{4} \left (a d + b c\right )}{\left (a d - b c\right )^{3}} + b^{2} c^{2}}{2 a b d^{2} + 2 b^{2} c d} \right )}}{2 \left (a d - b c\right )^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________